//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#if !defined(_HW_CONF_H_)
#define _HW_CONF_H_

#ifdef __cplusplus
extern "C" {
#endif

//==========================================================================
// os loader defines
// ROM MODE
// start image address snooze buffer on rom mode
#define HwBufferAddress_rom 0x60001000

// flash baseaddr on rom mode
#define HwFlashBase_rom     0x24000000

#define HwFlashSectorSize   0x00040000

//==========================================================================
// DRAM
#define DRAM0_START         0xC0000000
#define DRAM1_START         0xC1000000
#define DRAM0_LEN           0x800000
#define DRAM1_LEN           0x800000

//==========================================================================
// UART
//#define UartPortBase                0x80044000

//==========================================================================
// LCD
#define HwLCDPhysicalBase             0xcd000000

// Pixels per row
#define HwLCDRowPixels      240
// Pixels per column
#define HwLCDColPixels      320
// lcd dispay mode, maybe 1/2/4/8 bits-per-pixel
#define HwLCDMode           16

// The base address of the LCD frame buffer in ARM memory.
#define HwLcdBaseAddress    0xA0000000

//Fat16 on flash
//#define FtlPartionStart           0x200000    /* 2M */

//==========================================================================
#ifdef __cplusplus
}
#endif

//==========================================================================
#include "ref_hw_conf.h"
//==========================================================================

//==========================================================================
#endif // _HW_CONF_H_
